import request from '@/utils/request'

// 查询学校列表
export function listSchool(query) {
  return request({
    url: '/miniprogram/school/list',
    method: 'get',
    params: query
  })
}

// 查询学校详细
export function getSchool(schoolId) {
  return request({
    url: '/miniprogram/school/detail/' + schoolId,
    method: 'get'
  })
}

// 查询学校的班级列表
export function getSchoolClasses(schoolId) {
  return request({
    url: '/miniprogram/school/' + schoolId + '/classes',
    method: 'get'
  })
} 